import { Component, OnInit, Input } from '@angular/core';
import { ClsCrhNavbarDto } from '../crh-navbar/cls-crh-navbar-dto';

@Component({
  selector: 'app-crh-navbar',
  templateUrl: './crh-navbar.component.html',
  styleUrls: ['./crh-navbar.component.scss']
})

export class CrhNavbarComponent implements OnInit {
  
  @Input() navDto : ClsCrhNavbarDto;

  constructor() { }

  ngOnInit() {

  }

  leftBarHandleClick(e) {
    if(this.navDto.leftBarClick){
      this.navDto.leftBarClick();
    }
  }

  rightBarHandleClick(e) {
    if(this.navDto.rightBarClick){
      this.navDto.rightBarClick();
    }
  }
}